import React from 'react'
import HeadNav from '../../components/HeadNav';
import { useNavigate } from 'react-router-dom';
import Button from '../../components/Button';
import style from './index.module.scss';

export default function Setting() {
  const navagate = useNavigate();
    const title = '用户设置';
    const leftClick = () => {
      navagate(-1);
    }
    const editClick = () => {
      console.log('退出登陆')
    }
    return (
      <>
        <div className={style.box}>
          <HeadNav title={title} leftClick={leftClick}/>
          <div className={style.btn}>
            <Button text={'退出登陆'} BtnClick={editClick} color={'#f56C6C'} background={'#fff'} fontSize={'14px'} isAll={true} isShadow={false}></Button>
          </div>
        </div>
      </>
    )
}
